//
//  AMInstanceDetailView.h
//  AWSMobile
//
//  Created by James on 14-11-13.
//  Copyright (c) 2014年 Siemens. All rights reserved.
//

#import <UIKit/UIKit.h>

@class AWSEC2Instance;

@interface AMInstanceDetailView : UIViewController

@property AWSEC2Instance *instance;
/**
 *  Outlets
 */
@property (strong, nonatomic) UIScrollView *scrollView;

@property (strong, nonatomic) UILabel *instanceStateName;
@property (strong, nonatomic) UILabel *instanceID;
@property (strong, nonatomic) UILabel *instancePublicDNS;
@property (strong, nonatomic) UILabel *instancePublicIP;
@property (strong, nonatomic) UILabel *instanceAailableZone;
@property (strong, nonatomic) UILabel *instanceStatusChecks;

@property (strong, nonatomic) UIButton *instanceRebootButton;
@property (strong, nonatomic) UIButton *instanceStopButton;
@property (strong, nonatomic) UIButton *instanceTerminateButton;

@property (strong, nonatomic) IBOutlet UIBarButtonItem *refreshButton;

/**
 *  Actions
 */
- (void)reboot:(UIButton *)sender;
- (void)stopOrStart:(UIButton *)sender;
- (void)terminate:(UIButton *)sender;
- (IBAction)refreshInstanceDetails:(UIBarButtonItem *)sender;

@end
